package com.cizzy.relation.feign;

import com.cizzy.relation.common.Result;
import com.cizzy.relation.entity.dao.UserCountDAO;
import com.cizzy.relation.entity.dto.UserDTO;
import com.cizzy.relation.common.Result;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 51755
 */
@Component
public class UserFeignFallback implements UserFeign {
    @Override
    public Result<List<UserDTO>> getUserListByIds(@RequestBody List<Long> ids) {
        return Result.error("调用失败");
    }

    @Override
    public Result<UserCountDAO> addUserCountById(@RequestParam("column") String column, @RequestParam("id") Long id, @RequestParam("count") Integer count) {
        return Result.error("调用失败");
    }
}
